﻿using System;
using System.Collections.Generic;
using System.Text;

namespace r.libr.Media
{
    public partial class Tag
    {
        public struct AlbumInfo
        {
            private Treetable TagTree;
            public OriginalInfo Original;
            internal AlbumInfo(Treetable tempTagTree)
            {
                TagTree = tempTagTree;
                Original = new OriginalInfo(TagTree);
            }

            public string Title
            {
                get
                {
                    return (TagTree.GetLeaf("Album.Title").ToString());
                }
                set
                {
                    TagTree.SetLeaf("Album.Title", value);
                }
            }
            public string Set
            {
                get
                {
                    return (TagTree.GetLeaf("Album.Set").ToString());
                }
                set
                {
                    TagTree.SetLeaf("Album.Set", value);
                }
            }
            public string Track
            {
                get
                {
                    return (TagTree.GetLeaf("Album.Track").ToString());
                }
                set
                {
                    TagTree.SetLeaf("Album.Track", value);
                }
            }
            public string Website
            {
                get
                {
                    return (TagTree.GetLeaf("Album.Website").ToString());
                }
                set
                {
                    TagTree.SetLeaf("Album.Website", value);
                }
            }

            public struct OriginalInfo
            {
                private Treetable TagTree;
                internal OriginalInfo(Treetable tempTagTree)
                {
                    TagTree = tempTagTree;
                }
                public string Title
                {
                    get
                    {
                        return (TagTree.GetLeaf("Album.Original.Title").ToString());
                    }
                    set
                    {
                        TagTree.SetLeaf("Album.Original.Title", value);
                    }
                }
            }
        }
    
    }
}
